package com.sjksy.demo.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.sjksy.demo.domain.EmployeeType;
import com.sjksy.demo.service.EmployeeTypeService;
import com.sjksy.demo.mapper.EmployeeTypeMapper;
import jakarta.annotation.Resource;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author guyueyuan
* @description 针对表【employee_type】的数据库操作Service实现
* @createDate 2024-12-11 15:37:02
*/
@Service
public class EmployeeTypeServiceImpl extends ServiceImpl<EmployeeTypeMapper, EmployeeType>
    implements EmployeeTypeService{
    @Resource
    private EmployeeTypeMapper employeeTypeMapper;

    /**
     * 获取员工所有类型
     * @return
     */
    public List<EmployeeType> getAll() {
        return employeeTypeMapper.selectList(null);
    }
}




